package com.likersai.funa.pojo.dto.req.fundProduct;

import com.likersai.funa.pojo.dto.param.fundProduct.ProductQueryParam;
import com.likersai.funa.pojo.dto.req.PageReq;
import com.likersai.funa.pojo.dto.req.ParamAble;
import lombok.Data;

/**
 * 基金产品查询
 *
 * @author sun.ye
 * @since 2021-09-12 15:32
 */
@Data
public class FundProductQueryReq implements ParamAble<ProductQueryParam> {

    private Long id;
    private String code;
    private String name;
    private String statusFund;
    private String statusIssue;
    private String riskCharacteristics;

    private PageReq page;

    @Override
    public ProductQueryParam toParam() {

        ProductQueryParam param = new ProductQueryParam();

        param.setId(id);
        param.setCode(code);
        param.setName(name);
        param.setStatusFund(statusFund);
        param.setStatusIssue(statusIssue);
        param.setStatusIssue(statusIssue);
        param.setRiskCharacteristics(riskCharacteristics);

        return param;

    }
}